<div class="module messages">
	<h3 class="gradient dark">Message Center</h3>
	<div class="inner">
	<ul>
	
	<?php foreach($messages as $message):?>
		<li>
			<span class="date"><?php echo $message->getCreatedAt('%a %b %d, %Y')?></span>
			<span class="username"><?php echo render_display_name($message->getUserRelatedBySenderId())?></span>
			<span class="message"><?php echo link_to(substr($message->getBody(), 0, 128)."...", 
					'messages/show?id='.$message->getId().'&group_id='.$group_id) ?></span>
		</li>
	<?php endforeach?>
	
	</ul>
	</div>
</div>